import { PRODUCT_TYPE_OPTIONS } from '@/constants/commodity';

export const FORM_ITEMS = [
  {
    prop: 'categoryUuids',
    label: '品类',
    type: 'slot',
    slotName: 'category',
    defaultVal: []
  },
  {
    prop: 'spuNo',
    label: 'SPU编码',
    type: 'input',
  },
  {
    prop: 'productNameFinal',
    label: '商品名称',
    type: 'input',
  },
  {
    prop: 'brandName',
    label: '商品品牌',
    type: 'input',
  },
  {
    prop: 'productType',
    label: '商品类型',
    type: 'select',
    options: PRODUCT_TYPE_OPTIONS,
    clearable: true
  },
  {
    prop: 'searchKeyword',
    label: '智能搜索关键词',
    type: 'input',
  }
]

export const TABLE_COLUMNS = [
  {
    title: '商品状态',
    key: 'productAddStateStr',
    fixed: 'left',
  },
  {
    title: '分类',
    key: 'categoryPath',
  },
  {
    title: 'SPU编码',
    key: 'spuNo',
  },
  {
    title: '创建人',
    key: 'createOperName',
  },
  {
    title: '商品名称',
    key: 'productNameFinal',
  },
  {
    title: '商品类型',
    key: 'productTypeStr',
  },
  {
    title: '品牌',
    key: 'brandName',
  },
  {
    title: '下属SKU数',
    key: 'skuCount',
  }
]
